﻿@using (Html.BeginForm("LogOn", "Home"))
{ 
    <div>
        <input type="hidden"  value="@ViewBag.ReturnUrl" name="ReturnUrl"/>
        <b>账号</b>
        @Html.TextBox("UserName")
        <hr />
        <b>密码</b>
        @Html.TextBox("Password")
        <hr />
        <button>
            登陆</button>@Html.ActionLink("登出", "LogOut", "Home")
        <b>@ViewBag.logonMsg</b>
    </div>
}